package com.ruoyi.marketing.service.impl;

import com.ruoyi.marketing.mapper.MarketActivityUserMapper;
import com.ruoyi.marketing.service.IMarketActivityUserService;
import com.ruoyi.marketing.vo.ActivityUserVo;
import com.ruoyi.marketing.vo.PrizeDetailVo;
import com.ruoyi.marketing.vo.UserDetailVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 营销活动Service业务层处理
 *
 * @author ruoyi
 * @date 2023-01-28
 */
@Service
public class MarketActivityUserServiceImpl implements IMarketActivityUserService {
    @Resource
    private MarketActivityUserMapper marketActivityUserMapper;


    @Override
    public List<ActivityUserVo> list(ActivityUserVo vo) {
        return marketActivityUserMapper.list(vo);
    }

    @Override
    public List<UserDetailVo> listUserDetail(Long id) {
        return marketActivityUserMapper.listUserDetail(id);
    }

    @Override
    public List<PrizeDetailVo> listPrizeDetail(Long userId, Long activityId) {
        return marketActivityUserMapper.listPrizeDetail(userId, activityId);
    }
}
